class loadClew extends egret.Sprite{
	//private tx:egret.
	public constructor() {
		super();
		this.once(egret.Event.REMOVED_FROM_STAGE,this.onRemove,this);
	}
	private onRemove(){
		if(this.quan){
			egret.Tween.removeTweens(this.quan);
		}		
	}
	private quan:egret.Bitmap;
	public init(){
		var w:number = 1166
		var bg:egret.Bitmap = MyLibrary.createBitmapByName("alphabg_png",false,StageData.W,StageData.H);
		bg.alpha = 0;
		bg.touchEnabled = true;
		this.addChild(bg);
		/*var aloadbg:egret.Bitmap = MyLibrary.createBitmapByName("loadclewBg_png",true);
		aloadbg.x = bg.width/2;
        aloadbg.y = bg.height/2;
		this.addChild(aloadbg);*/

		var ui:egret.Bitmap = MyLibrary.createBitmapByName("load_hua_png",true);
        ui.x = bg.width/2;
        ui.y = bg.height/2;
        this.addChild(ui);
        
        this.quan = MyLibrary.createBitmapByName("load_yuan_png",true);
        this.quan.x = bg.width/2;
        this.quan.y = bg.height/2
        this.addChild(this.quan); 
		egret.Tween.get(this.quan,{"loop":true}).to({rotation:360},800);
	}
}